package com.shengzhe.ostudent.dao;

import com.shengzhe.ostudent.entity.PageInfo;
import com.shengzhe.ostudent.entity.Role;
import com.shengzhe.ostudent.entity.RoleCondition;

import java.sql.SQLException;
import java.util.List;

public interface RoleDao {
    int add(Role role);
    List<Role>list(RoleCondition roleCondition);

    List<Role> list();

    Role findById(long id) throws SQLException;

    PageInfo<Role> displayRolePage(RoleCondition roleCondition);
    List<Role> findChildren(Role role);

    boolean modify(Role role);
    int updateRole(Role role);
}
